<script lang="ts" setup>
import router from "@/router";
import { classFrontStore } from "@/stores/frontData/he/class";
const store = classFrontStore();

const goClassVideo = (id: any, classid: any) => {
  router.push({
    path: "/FrontFreeClass",
    query: {
      id: id,
      classId: classid,
    },
  });
};
</script>
<template>
  <template v-if="store.classs[0].videoVos.length == 0">
    <el-empty description="暂无视频" />
  </template>
  <template v-else v-for="item in store.classs[0].videoVos">
    <div style="margin-top: 30px" @click="goClassVideo(item.id, store.classId)">
      <div
        style="
          width: 80%;
          height: 35px;
          background-color: rgb(204, 204, 204);
          line-height: 35px;
          margin: auto;
          padding-left: 20px;
        "
      >
        {{ store.classId }}
        <span style="font-weight: bold; margin-right: 10px">
          {{ item.id }}
        </span>
        <span
          class="iconfont icon-shipin-xian"
          style="font-size: 13px; margin-left: 10px"
        ></span>
        <span style="margin-left: 20px; font-size: 12px">
          {{ item.videoName }}</span
        >
      </div>
    </div>
  </template>
</template>
